package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.CoachAccount;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CoachAccountMapper extends BaseMapper<CoachAccount> {
    CoachAccount findByUsernameAndPassword(@Param("coach_username") String username, @Param("coach_password") String password);
    CoachAccount findByCoachId(@Param("coach_id") Long coachId);
    void updateUserId(@Param("coach_id") Long coachId, @Param("coach_account_id") Long coachAccountId);
}
